/** 该文件仅存放演员模块相关的接口API */
import myaxios from '../MyAxios';
import axios from 'axios';

// 引入路径前缀
import BASEURL from '../BaseUrl';
const { LYURL } = BASEURL;

const LoginApi = {
  // 测试
  test() {
    return myaxios.get('/api/statistic/data/08dbf571373e404b9dd6dd0001076f12')
  },
  // 登录
  login(params) {
    // console.log(params);
    return myaxios.post('/login', params)
  },
  yanzheng(fileMd5, extension) {
    return axios({
      url: 'http://localhost:3000/api/upload/verify',
      method: 'POST',
      data: {
        fileMd5, extension
      }
    })
  },
  shangchuan(data) {
    return axios({
      url: 'http://localhost:3000/api/upload',
      data,
      method: 'POST'
    })
    // myaxios.post(LYURL + '/api/upload', params)
  },
  hebing(fileMd5, extension) {
    return axios({
      url: 'http://localhost:3000/api/upload/merge',
      method: 'POST',
      data: {
        fileMd5, extension
      }
    })
  },
};

export default LoginApi;
